package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 转换记录表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ExchangeRecords对象", description="转换记录表")
public class ExchangeRecords implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "置换商城的商品id")
    private Integer productId;

    @ApiModelProperty(value = "置换商城的sku id")
    private Integer skuId;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "支付的人民币价格")
    private Integer payMoneyPrice;

    @ApiModelProperty(value = "支付的积分价格")
    private Integer payScorePrice;

    @ApiModelProperty(value = "置换前的人民币价格")
    private Integer sourceMoneyPrice;

    @ApiModelProperty(value = "置换前的积分价格")
    private Integer sourceScorePrice;

    @ApiModelProperty(value = "置换物的人民币价格")
    private Integer targetMoneyPrice;

    @ApiModelProperty(value = "置换物的积分价格")
    private Integer targetScorePrice;

    @ApiModelProperty(value = "1为待支付 2为已完成兑换 3为已取消")
    private Integer status;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;


}
